﻿<UserControl x:Class="WetHatLab.OneNote.TaggingKit.find.HitHighlightedPageLink"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:local="clr-namespace:WetHatLab.OneNote.TaggingKit.find"
             xmlns:prop="clr-namespace:WetHatLab.OneNote.TaggingKit.Properties"
             d:DataContext="{d:DesignInstance IsDesignTimeCreatable=True, Type={x:Type local:HitHighlightedPageLinkDesignerModel}}"
             mc:Ignorable="d"
             d:DesignHeight="30" d:DesignWidth="200"
             DataContextChanged="OnDataContextChanged">
    <!-- Tooltip for the Hyperlink is programmatically generated -->
    <TextBlock VerticalAlignment="Center">
        <Run Text="{Binding MarkerSymbol, Mode=OneWay}"
             FontFamily="Segoe UI Symbol"
             FontSize="14"
             FontWeight="UltraBold"
             Foreground="{Binding MarkerColor,Mode=OneWay}" />
        <Hyperlink Click="Hyperlink_Click">
            <TextBlock Name="hithighlightedTitle" TextTrimming="CharacterEllipsis" />
        </Hyperlink>
    </TextBlock>
</UserControl>